from manimlib import *
from customized import *

LV, QL, QH, JH = '#75cfb8', '#bbdfc8', '#f0e5d8', '#ffc478'


class p1(Scene):
    def construct(self):
        # self.add(NumberPlane())
        # self.camera.frame.scale(1.5)
        # self.camera.frame.move_to([0, 0.9, 0])
        vg = VGroup()
        for i in range(7):
            for j in range(6):
                if not ((i == 0 and j == 0) or (i == 6 and j == 0)):
                    sq = CustomizedSquare(1).shift(RIGHT * i + DOWN * j)
                    vg.add(sq)
        vg.move_to(ORIGIN)
        self.add(vg)


class p2(Scene):
    def construct(self):
        # self.add(NumberPlane())
        # self.camera.frame.scale(1.5)
        # self.camera.frame.move_to([0, 0.9, 0])
        vg = VGroup()
        for i in range(7):
            for j in range(6):
                if not ((i == 0 and j == 0) or (i == 6 and j == 0)):
                    sq = CustomizedSquare(1).shift(RIGHT * i + DOWN * j)
                    if (i + j) % 2 != 0:
                        sq.set_fill(GREY_D,1)
                    vg.add(sq)
        vg.move_to(ORIGIN)
        self.add(vg)